const main = {
  add: `INSERT INTO StaffInvite
    (userId, companyId) VALUES (?, ?)`,
  select: `SELECT c.* FROM StaffInvite s
    LEFT JOIN CompanyAuthorize c ON c.id = r.companyId
    WHERE (? IS NULL OR s.userId  = ?)
    AND (? IS NULL OR s.companyId = ?)
    ORDER BY s.id DESC`
};

module.exports = main;